/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package domain;

/**
 *
 * @author "Jeroen"
 */
public class MineFieldFactory {

    private static MineFieldFactory mineFieldFactory;

    private MineFieldFactory() {
    }

    public static synchronized MineFieldFactory getInstance() {
        if (mineFieldFactory == null) {
            MineFieldFactory.mineFieldFactory = new MineFieldFactory();
        }
        return mineFieldFactory;
    }

    public MineField createMineField(String type) {
        switch(type) {
            case "beginner": return new MineField(9,9,10);
            case "experienced": return new MineField(16,16,40);
            case "expert": return new MineField(16,30,99);
            default: return null;
        }
    }
}
